<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>订单打印 - {mall:config name="site.name"}</title>
</head>
<style>
body{font-size:13px;}
td,th{padding:2px;}
</style>
<body>
<table width='100%' border='0'>
  <tr>
    <td colspan='8' style='text-align:center;font-weight:bold;font-size:26px'>订单信息</td>
  </tr>
  <tr>
    <td width='100' align="right">下单时间：</td>
    <td width='250'>{$row['createtime']}</td>
    <td width='100' align="right">支付方式：</td>
    <td width='250'>{$row['payTypeName']}</td>
    <td width='100' align="right">订单编号：</td>
    <td width='250'>{$row['orderNo']}</td>
  </tr>
  <tr>
    <td width='100' align="right">发货时间：</td>
    <td>{$row['deliverytime']}</td>
    <td width='100' align="right">配送方式：</td>
    <td>{$row['deliverTypeName']}</td>
    <td width='100' align="right">快递单号：</td>
    <td>{$row['expressNo']}</td>
  </tr>
  {if $row['invoiceClient'] !=''}
  <tr>
    <td width='100' align="right">发票抬头：</td>
    <td colspan="6">{$row['invoiceClient']}</td>
  </tr>
  {/if}
  {if ($row['orderType']==0)}
  <tr>
    <td width='100' align="right">收货地址：</td>
    <td colspan="6">{$row['userName']}&nbsp;|&nbsp;{$row['userPhone']}&nbsp;|&nbsp;{$row['userAddress']}</td>
  </tr>
  {/if}
  {if $row['orderRemarks']!=''}
  <tr>
    <td width='100' align="right">订单备注：</td>
    <td colspan="6">{$row['orderRemarks']}</td>
  </tr>
  {/if}
</table>
<table width='100%' border='1' style='border-collapse:collapse;border-color:#000;'>
  <tr style='background:#cccccc;'>
    <th align="left">商品名称</th>
    <th align="left">商品规格</th>
    <th align="left" align="left">商品价格</th>
    <th align="left">商品数量</th>
    <th align="left">小计</th>
  </tr>
  {volist name='$list' id='vo2'}
  <tr>
    <td colspan="5">商家：{$vo2['name']}&nbsp;&nbsp;&nbsp;电话：{$vo2['shopTel']}</td>
  </tr>
  <tr>
    <td>{$vo2["goodsname"]}</td>
    <td>
    {if $vo2['goodsType']==1 && $row['status']=='unappraise'}
      <table width='100%'>
      {volist name='$vo2["extraJson"]' id='vgcard'}
         <tr>
            <td>卡券号：{$vgcard['cardNo']}</td>
            <td>卡券密码：{$vgcard['cardPwd']}</td>
         </tr>
      {/volist}
      </table>
    {else}
    {:str_replace('@@_@@',';',$vo2["goodsSpecNames"])}&nbsp;
    {/if}
    </td>
    <td>¥{$vo2['goodsPrice']}</td>
    <td>{$vo2['goodsNum']}</td>
    <td>¥{$vo2['goodsPrice']*$vo2['goodsNum']}</td>
  </tr>
  {/volist}
  </table>
  <table width='100%' border='0'>
  <tr>
    <td colspan='6' align="right">商品总金额：¥{$row['goodsMoney']}</td>
  </tr>
  <tr>
    <td colspan='6' align="right">运费：¥{$row['deliverMoney']}</td>
  </tr>
  <tr>
    <td colspan='6' align="right">应付金额：¥{$row['totalMoney']}</td>
  </tr>
  <tr>
    <td colspan='6' align="right">积分抵扣金额：¥-{$row['scoreMoney']}</td>
  </tr>
  <tr>
    <td colspan='6' align="right">实付金额：¥{$row['realTotalMoney']}</td>
  </tr>
</table>
<br/>
<table width='100%'>
   <tr>
     <td></td>
     <td align="right">打印时间：{:date('Y-m-d H:i:s')}</td>
   </tr>
</table>
</body>
<script>
window.print();
</script>
</html>
